<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
         <% 
String path = request.getContextPath(); 
// 获得项目完全路径（假设你的项目叫MyApp，那么获得到的地址就是 http://localhost:8080/MyApp/）: 
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/"; 
%> 
<!DOCTYPE html>
<html>
<head>
<base href="<%=basePath%>"> 
<title>主页</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
     
        <link rel="stylesheet" href="css/user_css/css/bootstrap.min.css" />
 
        <link href="css/index_css/style.css" rel="stylesheet"/>
</head>
<body>
<div id="index_main">
<div id="index_button">
<button type="button">进入</button></div>
</div>
</body>
</html>